package com.matuw.android.adapter;

import android.content.Context;
import android.view.View;

import androidx.annotation.NonNull;


public interface UniversalHolder<T> {

    int NO_POSITION = -1;
    int INVALID_TYPE = -1;

    @NonNull
    T get();

    <V extends View> V getView(int viewId);

    /**
     * 获取当前的下标，ListView需要自行设置这个下标
     */
    int getAdapterPosition();

    @NonNull
    Context getContext();

}
